package com.nzw.pojo.pay;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * 2018-07-25 15:59:06四叶草,充值金额0.02元
 * Created by yinwx on 2018\3\8 0008.
 * 支付记录的实体类
 *
 */


@Table(name = "t_payrecord")
public class PayRecord implements Serializable {

    private Long id;                //支付记录id
    private Long userId;            //用户id
    private Long companyId;         //企业id
    private String descript;        //订单描述
    private Long shopId;            //商户id
    private String orderCode;       //订单号
    private String wxPayCode;       //微信支付订单号
    private Integer payMoney;       //支付金额以分为单位
    private Boolean isRecode;      //是否充值
    private Integer recodeMoney;    //充值金额
    private String card;            //卡号
    private Date payDate;           //支付时间
    private Date createDate;        //创建时间
    private Long couponId;          //优惠券id
    private Integer giftMoney;      //赠送金额
    private Integer payType;        //类型  1_充值， 2_一键加油
    private Boolean isPay;          //是否支付成功
    private Boolean refunded;       //是否退款
    private String refundCode;       //退款码
    private Long shiftId;           //值班id
    private String note;            //备注
    private Integer state;          //状态   1_未支付 2_支付未充值 3支付已充值 4申请退款中 5退款成功 6退款失败




    @Column(name = "card")
    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Column(name = "userId")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }


    @Column(name = "payMoney")
    public Integer getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(Integer payMoney) {
        this.payMoney = payMoney;
    }

    @Column(name = "payDate")
    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    @Column(name = "wxPayCode")
    public String getWxPayCode() {
        return wxPayCode;
    }

    public void setWxPayCode(String wxPayCode) {
        this.wxPayCode = wxPayCode;
    }


    @Column(name = "orderCode")
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }


    @Column(name = "isRecode")
    public Boolean getIsRecode() {
        return isRecode;
    }

    public void setIsRecode(Boolean isRecode) {
        this.isRecode = isRecode;
    }


    @Column(name = "recodeMoney")
    public Integer getRecodeMoney() {
        return recodeMoney;
    }

    public void setRecodeMoney(Integer recodeMoney) {
        this.recodeMoney = recodeMoney;
    }

    @Column(name = "createDate")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


    @Column(name = "descript")
    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Column(name = "couponId")
    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }


    @Column(name = "payType")
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    @Column(name = "giftMoney")
    public Integer getGiftMoney() {
        return giftMoney;
    }

    public void setGiftMoney(Integer giftMoney) {
        this.giftMoney = giftMoney;
    }

    @Column(name = "isPay")
    public Boolean getIsPay() {
        return isPay;
    }

    public void setIsPay(Boolean pay) {
        this.isPay = pay;
    }

    @Column(name = "refunded")
    public Boolean getRefunded() {
        return refunded;
    }

    public void setRefunded(Boolean refunded) {
        this.refunded = refunded;
    }

    @Column(name = "refundCode")
    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }


    @Column(name = "shopId")
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }


    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }


    @Column(name = "shiftId")
    public Long getShiftId() {
        return shiftId;
    }

    public void setShiftId(Long shiftId) {
        this.shiftId = shiftId;
    }


    @Column(name = "note")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "PayRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", companyId=" + companyId +
                ", descript='" + descript + '\'' +
                ", orderCode='" + orderCode + '\'' +
                ", wxPayCode='" + wxPayCode + '\'' +
                ", payMoney=" + payMoney +
                ", isRecode=" + isRecode +
                ", recodeMoney=" + recodeMoney +
                ", card='" + card + '\'' +
                ", payDate=" + payDate +
                ", createDate=" + createDate +
                ", couponId=" + couponId +
                ", payType=" + payType +
                '}';
    }
}
